package com.wdhcr.osspolicy.bean;

import com.wdhcr.osspolicy.annotation.OssConverter;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
@Accessors(chain = true)
public class User {
    private Long id;
    private String name;
    @OssConverter
    private String imageUrl1;
    @OssConverter
    private String imageUrl2;
    @OssConverter
    private String imageUrl3;
    @OssConverter
    private String imageUrl4;
    @OssConverter
    private String imageUrl5;
    @OssConverter
    private String imageUrl6;
    @OssConverter
    private String imageUrl7;
    @OssConverter
    private String imageUrl8;

    private Stu stu;

    private Tea tea;

    private List<Aa> aaList;
    private Set<Bb> bbSet;
    private Map<String,Cc> ccMap;

    private Dd[] dds;

    private BigDecimal ee;
    private Date date;


    @Data
   public static class Stu{
        @OssConverter
        private String ss;
    }
    @Data
    public static class Tea{
        @OssConverter
        private String tt;
    }

    @Data
    public static class Aa{
        @OssConverter
        private String aa;
        private String aaa;
    }

    @Data
    public static class Bb{
        @OssConverter
        private String bb;
    }

    @Data
    public static class Cc{
        @OssConverter
        private String cc;
    }
    @Data
    public static class Dd{
        @OssConverter
        private String dd;
    }
}
